<?php
namespace Other\Model;
use Think\Model;
class OtherModel extends Model {
    protected $_validate = array(
        array('name','require','名称必须存在并且不能重复',1,'unique',3) //默认情况下用正则进行验证
    );
}
